<?php 

/**
* 狗类
*/
class Dog extends Animal
{
	public $name;
	public $age;
	/**
	 * 构造函数
	 */
	public function __construct($name=null,$age=null)
	{
		$name = '非洲'.$name;
		$this->name=$name;
		$this->age=$age;
	}
	protected function run($info=null)
	{
		echo $this->name.'会跑,'.$info;
	}

	// public function eat()
	// {
	// 	echo $this->name."可以吃的";
	// }

	public function test()
	{
		$this->eat();
	}

}
















 ?>